﻿namespace Common.Cache;

public sealed class CacheSignal<T>
{
    private readonly SemaphoreSlim _semaphoreSlim = new(1, 1);

    public Task WaitAsync() => _semaphoreSlim.WaitAsync();

    public void Release() => _semaphoreSlim.Release();
}